<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:cc="http://java.sun.com/jsf/composite/controls"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<!--div class="header">
		<img id="logo" src="/resources/images/logo.png" alt="logo" class="logo" />
	</div-->
	<h:form>  
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
	<td height="65px"><img id="logo" src="/resources/images/logo.png" alt="logo" class="logo" /></td>
	<td align="right">
	<div style="padding-right:20px" align="right">
                <h:outputText value="欢迎  #{identity.username} 您好!" rendered="#{identity.loggedIn}"/>
                <h:outputText value=" | " rendered="#{identity.loggedIn}"/>
                <h:commandLink action="/um/preference?faces-redirect=true" value="我的资料" rendered="#{identity.loggedIn}"/>
                <h:outputText value=" | " rendered="#{identity.loggedIn}"/>
                <h:commandLink action="#{authenticationCtrl.logout}" immediate="true" value="退出系统" rendered="#{identity.loggedIn}"/>
                <h:panelGroup rendered="#{not identity.loggedIn}"><a href="/login.jsf">登录</a></h:panelGroup>
                
            </div>
	</td>
	</tr>
	<tr>
	<td valign="bottom" height="20px" colspan="2">
  <ui:insert name="topMenu" />
  <!--p:toolbar>  
    <p:toolbarGroup align="left">  
        <ui:insert name="currentFunction" />
    </p:toolbarGroup>  
  
    <p:toolbarGroup align="right">   
        <p:menuButton value="业务管理">  
            <p:menuitem value="文档管理" url="/admin/note.jsf" icon="ui-icon-document" />
            <p:menuitem value="产品管理" url="/admin/product.jsf" icon="ui-icon-document" />
        </p:menuButton> 
        <p:menuButton value="内容管理">  
            <p:menuitem value="文档管理" url="/admin/note.jsf" icon="ui-icon-document" />
            <p:menuitem value="产品管理" url="/admin/product.jsf" icon="ui-icon-document" />
        </p:menuButton> 
        <p:menuButton value="系统设置">  
           <p:menuitem value="系统参数设置" url="/admin/param.jsf" icon="ui-icon-document" />
            <p:menuitem value="国际化设置" url="/admin/i18n.jsf" icon="ui-icon-document" />
            <p:menuitem value="基础数据设置" url="/admin/code.jsf" icon="ui-icon-document" />
            <p:menuitem value="缓存管理" url="/admin/cache.jsf" icon="ui-icon-document" />
        </p:menuButton>   
        <p:menuButton value="权限管理">  
            <p:menuitem value="用户管理" url="/admin/note.jsf" icon="ui-icon-document" />
            <p:menuitem value="权限管理" url="/admin/product.jsf" icon="ui-icon-document" />
        </p:menuButton> 
    </p:toolbarGroup>  
  
  </p:toolbar-->  
	</td>
	</tr>
	</table>
</h:form>  
	<!--p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
	<p:dialog modal="true" widgetVar="statusDialog" showHeader="false"   
	        draggable="false" closable="false" resizable="false">  
	    <p:graphicImage value="/resources/images/ajax-loader.gif" />  
	</p:dialog-->  
	<p:ajaxStatus style="width:64px;height:64px;position:fixed;right:5px;bottom:5px">  
    <f:facet name="start">  
        <p:graphicImage value="/resources/images/status.gif" />  
    </f:facet>  
  
    <f:facet name="complete">  
        <h:outputText value="" />  
    </f:facet>  
</p:ajaxStatus>  
		    
</ui:composition>
